projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
714e11d
)
Exercise wire right after event is filtered for native input
author
Po Lu
<luangruo@yahoo.com>
Mon, 17 Jan 2022 00:29:39 +0000
(08:29 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 17 Jan 2022 00:30:38 +0000
(08:30 +0800)
* src/xterm.c (handle_one_xevent): Run a no-op immediately after
an event was filtered by GDK.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index 3328e659301b4b19b466383f262952ee05e95473..9bf4404c9cf5e2f78483c99e6dfe5e37ef23813a 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-8385,6
+8385,11
@@
x_filter_event (struct x_display_info *dpyinfo, XEvent *event)
result = xg_filter_key (f1, event);
unblock_input ();
+ if (result && f1)
+ /* There will probably be a GDK event generated soon, so
+ exercise the wire to make pselect return. */
+ XNoOp (FRAME_X_DISPLAY (f1));
+
return result;
}